package cn.zwxky.android.staff.Jurisdiction.Manager;

import android.content.Context;

import com.zgscwjm.lsfbbasetemplate.adapter.CommonRecycAdapter;
import com.zgscwjm.lsfbbasetemplate.adapter.ViewHolderRecyc;

import java.util.List;

import cn.zwxky.android.staff.Approve.TaskDetailsChatBean;
import cn.zwxky.android.staff.R;
import cn.zwxky.android.staff.Utils.URLString;

/**
 * Created by Administrator on 2017/6/7 0007.
 */

public class MarketChatAdapter extends CommonRecycAdapter<TaskDetailsChatBean.ListBean> {
    public MarketChatAdapter(Context context, List<TaskDetailsChatBean.ListBean> list, int layoutId) {
        super(context, list, layoutId);
    }

    @Override
    public void convert(ViewHolderRecyc holder, TaskDetailsChatBean.ListBean model) {
        holder.setImg(R.id.fg_my_img_head, URLString.IMG_URL + model.getImg(), R.mipmap.img_my_details_head);
        holder.setText(R.id.item_img_follow_text_name, model.getName());
        holder.setText(R.id.item_img_follow_text_tieme, model.getTimes());
        holder.setText(R.id.item_img_follow_text_info, model.getContent());
    }
}
